export default [{
    path: '/user',
    name: 'User',
    component: () => import('@/views/User'),
    redirect: '/user/home',
    children: [
        {
            path: '/user/home',
            name: 'userHome',
            component: () => import('@/views/User/home')
        },
        {
            path: '/user/merchant',
            name: 'userMerchant',
            component: () => import('@/views/User/merchant')
        },
        {
            path: '/user/script',
            name: 'userScript',
            component: () => import('@/views/User/script')
        },
        {
            path: '/user/message',
            name: 'userMessage',
            component: () => import('@/views/User/message')
        },
        {
            path: '/user/order',
            name: 'userOrder',
            component: () => import('@/views/User/order')
        },
        {
            path: '/user/center',
            name: 'userCenter',
            component: () => import('@/views/User/center'),
            redirect: '/user/center/myCollect',
            children: [
                {
                    path: '/user/center/myCollect',
                    name: 'MyCollect',
                    component: () => import('@/views/User/center/component/myCollect')
                },
                {
                    path: '/user/center/myComment',
                    name: 'MyComment',
                    component: () => import('@/views/User/center/component/myComment')
                },
                {
                    path: '/user/center/setIcon',
                    name: 'SetIcon',
                    component: () => import('@/views/User/center/component/setIcon')
                },
                {
                    path: '/user/center/setUsername',
                    name: 'SetUsername',
                    component: () => import('@/views/User/center/component/setUsername')
                },
                {
                    path: '/user/center/setPassword',
                    name: 'SetPassword',
                    component: () => import('@/views/User/center/component/setPassword')
                },
                {
                    path: '/user/center/setPhone',
                    name: 'SetPhone',
                    component: () => import('@/views/User/center/component/setPhone')
                },
                {
                    path: '/user/center/setEmail',
                    name: 'SetEmail',
                    component: () => import('@/views/User/center/component/setEmail')
                },
                {
                    path: '/user/center/myApply',
                    name: 'MyApply',
                    component: () => import('@/views/User/center/component/myApply')
                },
                {
                    path: '/user/center/myLogOff',
                    name: 'MyLogOff',
                    component: () => import('@/views/User/center/component/myLogOff')
                }
            ]
        },
        {
            path: '/user/search',
            name: 'userSearch',
            component: () => import('@/views/User/search')
        },
        {
            path: '/user/merchant/detail',
            name: 'shop-detail',
            component: () => import('@/views/User/merchant/detail')
        },
        {
            path: '/user/script/detail',
            name: 'script-detail',
            component: () => import('@/views/User/script/detail')
        }


    ]
}]